
typedef int data_t;
#define N 128

typedef struct{

    data_t data[N];
    int front;       //头
    int rear;        //尾
}sqnode, *sqqueue;

//创建队列
sqqueue queue_create();

//入队
int enqueue( sqqueue sq, data_t value );

//出队
data_t dequeue( sqqueue sq );

//队列是否为空
int queue_empty( sqqueue sq );

//队列是否满了
int queue_full( sqqueue sq );

//清空队列
int queue_clear( sqqueue sq );

//释放队列
sqqueue queue_free( sqqueue sq );
